<include file="Public:header" />
<div id="main" class="main" >
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Js/editor/kindeditor.js"></script>
<script language="JavaScript">
<!--
function resetPwd(){
var pass	 =	document.getElementById("newpassword").value;
ThinkAjax.send('__URL__/resetPwd/','ajax=1&id={$vo.id}&password='+encodeURIComponent(pass));
}
KE.show({
        id : 'jianjie_1'
   });
//-->
</script>
<div class="content">

<table><tr>
	<td class="tRight">重置密码：</td>
	<td class="tLeft" ><input type="text" name="resetPwd" id="newpassword"> <INPUT type="button" value="重置密码" onclick="resetPwd()" class="submit" style="height:25px"></td>
</tr>
</table>

<form method='post' id="form1" action="__URL__/update" enctype="multipart/form-data">
    <div class="title">编辑会员信息 [ <input type="submit" value="保   存" class="small submit"> <a href="javascript:history.back()">返回列表</a> ]<b style="margin-left:10px;">操作人</b>：{$vo.user_id|getModelName=User,nickname}</div>
<table cellpadding=3 cellspacing=3>
<tr>
	<td class="tRight">相关活动记录：</td>
        <td class="tLeft" ><a href="__APP__/Order/index/member_id/{$vo.id}" target="_blank">预订记录</a> {$vo.id|count_order_link}&nbsp;&nbsp;|<a href="__APP__/Checkin/index/keywords/{$vo.name|urlencode}" target="_blank">入住记录</a>{$vo.id|count_checkin_link}&nbsp;&nbsp;|
             <a href="__APP__/Contact_record/index/member_id/{$vo.id}" target="_blank">联系记录</a>{$vo.id|count_contact_link}&nbsp;&nbsp;|           <a href="__APP__/Comment/index/member_id/{$vo.id}" target="_blank">留言</a>{$vo.id|count_msg_link}&nbsp;&nbsp;|房租总额：{$vo.id|sumRentCost='','','',###,'',''}</td>
</tr>

<tr>
	<td class="tRight" colspan="2"><hr></td>
</tr>

<tr>
	<td class="tRight" >用户名：</td>
	<td class="tLeft" ><input type="text" class="huge bLeftRequire"  check='^\S+$' warning="用户名不能为空,且不能含有空格" name="account" value="{$vo.account}"></td>
</tr>
<tr>
	<td class="tRight" >姓名：</td>
	<td class="tLeft" >
		<eq name="_REQUEST.return" value="home">
            <input type="hidden" name="jumpUrl" value="__APP__/Public/main">
        </eq> 

		<input type="text" class="huge bLeft" name="name" value="{$vo.name}">
          <select name="sex">
            <option value="0" <eq name="vo.sex" value="0">selected</eq> >------</option>
            <option value="1" <eq name="vo.sex" value="1">selected</eq> >男</option>
            <option value="2" <eq name="vo.sex" value="2">selected</eq> >女</option>
          </select>
        </td>
</tr>
<tr>
	<td class="tRight" >证件：</td>
	<td class="tLeft" >
            <select name="paypers">
                <volist name="payper_type" id="pp">
                    <option value="{$key}" <eq name="vo.paypers" value="$key">selected</eq> >{$pp}</option>
                </volist>
            </select>
            <input type="text" class="huge bLeft" width="140px;" name="payper_no" value="{$vo.payper_no}"></td>
</tr>
<tr>
	<td class="tRight" >个人地址：</td>
	<td class="tLeft" ><input type="text" class="huge bLeft" name="address" value="{$vo.address}"></td>
</tr>

<tr>
	<td class="tRight" >Email：</td>
        <td class="tLeft" ><input type="text" class="huge bLeft" name="email" value="{$vo.email}">&nbsp;&nbsp;<a href="__APP__/Comment/add/member_id/{$vo.id}/email/{$vo.email}/type/send">发邮件</a></td>
</tr>
<tr>
	<td class="tRight" >Email1：</td>
	<td class="tLeft" ><input type="text" class="huge bLeft" name="email1" value="{$vo.email1}">&nbsp;&nbsp;<a href="__APP__/Comment/add/member_id/{$vo.id}/email/{$vo.email1}/type/send">发邮件</a></td>
</tr>
<tr>
	<td class="tRight" >Email2：</td>
	<td class="tLeft" ><input type="text" class="huge bLeft" name="email2" value="{$vo.email2}">&nbsp;&nbsp;<a href="__APP__/Comment/add/member_id/{$vo.id}/email/{$vo.email2}/type/send">发邮件</a></td>
</tr>
<tr>
	<td class="tRight" >手机：</td>
        <td class="tLeft" ><input type="text" class="huge bLeft" name="mobile" value="{$vo.mobile}">&nbsp;&nbsp;<a href="#">发短信</a></td>
</tr>
<tr>
	<td class="tRight" >手机1：</td>
	<td class="tLeft" ><input type="text" class="huge bLeft" name="mobile1" value="{$vo.mobile1}">&nbsp;&nbsp;<a href="#">发短信</a></td>
</tr>
<tr>
	<td class="tRight" >手机2：</td>
	<td class="tLeft" ><input type="text" class="huge bLeft" name="mobile2" value="{$vo.mobile2}">&nbsp;&nbsp;<a href="#">发短信</a></td>
</tr>

<tr>
	<td class="tRight" >QQ：</td>
	<td class="tLeft" ><input type="text" class="huge bLeft" name="qq" value="{$vo.qq}"></td>
</tr>
<tr>
	<td class="tRight" >MSN：</td>
	<td class="tLeft" ><input type="text" class="huge bLeft" name="msn" value="{$vo.msn}"></td>
</tr>
<tr>
	<td class="tRight" >Gtalk：</td>
	<td class="tLeft" ><input type="text" class="huge bLeft" name="gtalk" value="{$vo.gtalk}"></td>
</tr>
<tr>
	<td class="tRight" >skype：</td>
	<td class="tLeft" ><input type="text" class="huge bLeft" name="skype" value="{$vo.skype}"></td>
</tr>
<tr>
	<td class="tRight" >所在单位：</td>
	<td class="tLeft" ><input type="text" class="huge bLeft" name="company" value="{$vo.company}"></td>
</tr>
<tr>
	<td class="tRight" >单位地址：</td>
	<td class="tLeft" ><input type="text" class="huge bLeft" name="company_address" value="{$vo.company_address}"></td>
</tr>
<tr>
	<td class="tRight" >电话：</td>
	<td class="tLeft" ><input type="text" class="huge bLeft" name="telephone" value="{$vo.telephone}"></td>
</tr>
<tr>
	<td class="tRight" >传真：</td>
	<td class="tLeft" ><input type="text" class="huge bLeft" name="fax" value="{$vo.fax}"></td>
</tr>
<tr>
	<td class="tRight" >网址：</td>
	<td class="tLeft" ><input type="text" class="huge bLeft" name="website" value="{$vo.website}"></td>
</tr>
<tr>
	<td class="tRight" >职位：</td>
	<td class="tLeft" ><input type="text" class="huge bLeft" name="title" value="{$vo.title}"></td>
</tr>
<tr>
	<td class="tRight" >邮编：</td>
	<td class="tLeft" ><input type="text" class="medium bLeft" name="zipcode" value="{$vo.zipcode}"></td>
</tr>
<tr>
	<td class="tRight" >评级：</td>
	<td class="tLeft" >
            <select name="rank">
                <volist name="rank" id="ra">
                <option value="{$key}" <eq name="vo.rank" value="$key">selected</eq> >{$ra}</option>
                </volist>
            </select>
        </td>
</tr>
<tr>
	<td class="tRight" >客户类型：</td>
	<td class="tLeft" >
            <select name="type">
                <volist name="type" id="ta">
                <option value="{$key}" <eq name="vo.type" value="$key">selected</eq> >{$ta}</option>
                </volist>
            </select>
        </td>
</tr>
<tr>
	<td class="tRight" >积分：</td>
	<td class="tLeft" ><input type="text" class="medium bLeft" name="score" value="{$vo.score}"></td>
</tr>
<tr>
	<td class="tRight" >客户来源：</td>
	<td class="tLeft" ><input type="text" class="medium bLeft" name="refer" value="{$vo.refer}"></td>
</tr>
<tr>
	<td class="tRight" >来自分店：</td>
	<td class="tLeft" >
            <select name="from_hotel">
                <option value="0">--请选择分店--</option>
                <volist name="hotel" id="ht">
                <option value="{$ht.id}" <eq name="vo.from_hotel" value="$ht['id']">selected</eq> >{$ht.name}</option>
                </volist>
            </select>
        </td>
</tr>
<tr>
	<td class="tRight">状态：</td>
	<td class="tLeft"><SELECT class="small bLeft"  name="status">
	<option <eq name="vo.status" value="1" >selected</eq> value="1">启用</option>
	<option <eq name="vo.status" value="0" >selected</eq> value="0">禁用</option>
	</SELECT></td>
</tr>
<tr>
	<td class="tRight tTop">简介：</td>
	<td class="tLeft"><textarea class="large bLeft" id="jianjie_1" name="profile" style="width:650px;height:200px;">{$vo.profile}</textarea></td>
</tr>
<tr>
	<td class="tRight tTop">备  注：</td>
	<td class="tLeft"><textarea class="large bLeft"  name="remark" style="width:650px;height:100px;">{$vo.remark}</textarea></td>
</tr>
<tr>
	<td></td>
	<td class="center"><input type="hidden" name="id" value="{$vo.id}" >
            <input type="hidden" name="user_id" value="{$_SESSION.authId}" >
	<input type="submit" value="保 存"  class="small submit">
	<input type="reset" class="reset imgButton" onclick="javascript:history.back()" value="返回" >
	</td>
</tr>
</table>
</form>
</div>
</div>
